package com.capsulode.excel.conversion;

import com.capsulode.excel.exception.CellTypeNotExpectException;
import com.capsulode.excel.exception.ConversionFailException;
import org.apache.poi.ss.usermodel.Cell;

/**
 * A type conversion.used to write your value to cell.
 *
 * @author terrason
 */
public interface Writer {
    /**
     * Serialize your value to cell.
     */
    void serialize(Object value, Cell cell) throws ConversionFailException, CellTypeNotExpectException;

}
